package tool;

public class Special {
    public static String specialStr(String str) {
        Integer index = str.indexOf("%");
        Integer index1 = str.indexOf("_");
        Integer index2 = str.indexOf("\\");
        StringBuffer stringBuffer = new StringBuffer(str);
        if (index != -1) {
            stringBuffer.insert(index, "\\");
        }
        if (index1 != -1) {
            stringBuffer.insert(index1, "\\");
        }
        if (index2 != -1) {
            stringBuffer.insert(index2, "\\");
        }
        return stringBuffer.toString();

    }
}
